using System.Text.RegularExpressions;

namespace Ausy.Silverlight.Survey.Common.Validation
{
    public class MailValidator : RegexValidator
    {
        public MailValidator()
        {
            this.Expression = new Regex(@"^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,4})$");
            this.DefaultMessage = "La mail n'est pas au bon format";
        }
    }
}
